package com.bub.pay.framework.shiro.authc;

import org.apache.shiro.authc.SimpleAuthenticationInfo;

public class BNSimpleAuthenticationInfo extends SimpleAuthenticationInfo {

    private Long userId;

    private Long extendId;

    //   用户类型，1=商户，2=代理，3=管理平台，4=分销商
    private Integer userType;

    /**
     * @param principal   登录名
     * @param credentials 密码
     * @param realmName
     */
    public BNSimpleAuthenticationInfo(Long userId, Long extendId, Integer userType, Object principal, Object credentials, String realmName) {
        super(principal, credentials, realmName);
        this.userId = userId;
        this.extendId = extendId;
        this.userType = userType;
    }

    public Long getUserId() {
        return userId;
    }

    public Integer getUserType() {
        return userType;
    }

    public Long getExtendId() {
        return extendId;
    }
}
